# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py3-django-treebeard
pkgver=4.3.1
pkgrel=1
pkgdesc="Efficient tree implementations for Django"
url="https://github.com/django-treebeard/django-treebeard"
arch="noarch"
license="Apache-2.0"
depends="py3-django"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/django-treebeard/django-treebeard/archive/$pkgver.tar.gz
	0001-Signature-of-ChangeList-changed-in-Django-2.1.patch
	0002-add-user-to-rrequest-object.patch
	0003-refactor-all-occurences-of-ChangeList.patch
	0004-Update-README.rst.patch
	0005-Update-README.rst.patch
	0006-docs-Fix-simple-typo-proprt-property.patch
	0007-Fix-pytest-installation-instructions.patch
	0008-Travis-CI-Get-PostgreSQL-server-back-on-default-port.patch
	0009-AppVeyor-Get-list-of-tox-environments-back-in-sync-w.patch
	0010-tox.ini-Document-state-of-environment-dj22-mssql.patch
	0011-Declare-support-for-Django-3-and-drop-support-for-EO.patch
	"

builddir="$srcdir/django-treebeard-$pkgver"

replaces="py-django-treebeard" # Backwards compatibility
provides="py-django-treebeard=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="0028bec918e3a269eade270842dac29bdbff4c87ad2606b240fc6796b04c2ff723b0fafae9c7c110aee3ef72e11f3a1a5877e6f21e29ea70c3e059f4cf32435a  py3-django-treebeard-4.3.1.tar.gz
250cecccc6c4b87790034961c5ff61d85bfa4b6a6ecc6edce7a887fd91333e1c4a88391ca4d6989786e014f9c4d98d164fb129bf22fa6e72fbe0d363e13a9c85  0001-Signature-of-ChangeList-changed-in-Django-2.1.patch
44f8f760b81c2a25c7da1e8f1b6546446a94b605c9404d58acba204ad53e8f247f012ee19962772437f98b1f74c3ede60f8d0cb602eed9bd03c7f04ed2958bea  0002-add-user-to-rrequest-object.patch
7ad29c9ab6f5e8089b1ce9ab73057fbb2ce1471b657a8d1c13c2a9c3d22b3337542111cd323c26e9ecd634ac9d46981284c9e3c87fd7bb2838e2406b897a222a  0003-refactor-all-occurences-of-ChangeList.patch
c8c046eaa6aa45a5a611ca3fe3c0274f29ea19dfe682f4c5bf6ed49668e293a95034bee4d5ea321b403cdc3b2ba4a6208869964772d1bb6e37935ced512b1a42  0004-Update-README.rst.patch
bce3c8d0019be35d7a15d035146e1bfecec191fa238733eed2be35bdef3f9635209c0e9b25ba034c857fcb0785d2331fba807853cec9cfcf49427acb4d1f7463  0005-Update-README.rst.patch
0185d08ddc876ee97e59a7c3c46b8e86c1f4d129ef1be66b15a97fd54795899aed5e4d21b2487d6566a994f639a29f9dac30b839c71077aefd939bc19716e70f  0006-docs-Fix-simple-typo-proprt-property.patch
7fbea231931d61493df4b6c8e1ca8f3f5b0fba754c5a459b15de64ee750bd2b3ca391885b1866ff721ddc0a42dd10691701803c5616ec97aaa98776a6d72a6dd  0007-Fix-pytest-installation-instructions.patch
a8bd7453a90b17414fae00ee59908944c1b98aed77c8b16223831bec40f08ded12c240d35ca389eba250dd61cd7645777ce0b306fbdd608994c841275021e286  0008-Travis-CI-Get-PostgreSQL-server-back-on-default-port.patch
77a3ebd590403c7c6a5da94e7e3e4d12da4d5de47bd82db9a90105e0997858dc95d603fb40fe830fd806ecedd7c7c2b032a705b9129b870cd00afbb9ab84afe1  0009-AppVeyor-Get-list-of-tox-environments-back-in-sync-w.patch
8de20781c33ef6ae290502870f12e11f0e6c9efe3187a1f62ee034997974ad3b83cf07409755c5c4b2cd7b674d4a75120ff52cce1e1c7167bd2769981b64aeba  0010-tox.ini-Document-state-of-environment-dj22-mssql.patch
19e2d212b47bae8b9a7f0271464b01b5d3ef83285b54259620120ceeb7b6fbbceddf4bb33735eb37059edc7e23690d4553772d936af26af843366db2d3c01cad  0011-Declare-support-for-Django-3-and-drop-support-for-EO.patch"
